package com.example.wishstar.model;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

@Entity(tableName = "user")
public class User
{
    @PrimaryKey()
    @ColumnInfo(name = "user_id", typeAffinity = ColumnInfo.INTEGER)
    public int user_id;

    @ColumnInfo(name = "user_mail", typeAffinity = ColumnInfo.TEXT)
    public String user_mail;

    @ColumnInfo(name = "password", typeAffinity = ColumnInfo.TEXT)
    public String password;

    @ColumnInfo(name = "state", typeAffinity = ColumnInfo.INTEGER)
    public int state;


    public User(int user_id, String user_mail, String password, int state) {
        this.user_id = user_id;
        this.user_mail = user_mail;
        this.password = password;
        this.state = state;
    }



    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public String getUser_mail() {
        return user_mail;
    }

    public void setUser_mail(String user_mail) {
        this.user_mail = user_mail;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    @Override
    public String toString()
    {
        return "User{" +
                "user_id=" + user_id +
                ", user_mail='" + user_mail + '\'' +
                ", password='" + password + '\'' +
                ", state='" + state + '\'' +
                '}';
    }
}

